package com.example.boot3new.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
//import org.springframework.boot.autoconfigure.web.servlet.ProblemDetailsExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler;

/**
 * @author lhq
 * @date 2023/05/30 19:24
 */
public  class MyTest  {

//        @Bean
//        @ConditionalOnMissingBean(ResponseEntityExceptionHandler.class)
//        ProblemDetailsExceptionHandler problemDetailsExceptionHandler() {
//
////            MyTest myTest = new MyTest();
//            return new ProblemDetailsExceptionHandler();
//
//    }
}
